$OpenBSD: patch-sw_Executable_tiledrendering_mk,v 1.2 2015/05/03 11:30:33 robert Exp $
--- sw/Executable_tiledrendering.mk.orig.port	Thu Mar 26 12:51:14 2015
+++ sw/Executable_tiledrendering.mk	Sun May  3 11:52:29 2015
@@ -42,11 +42,11 @@ $(eval $(call gb_Executable_add_exception_objects,tile
     sw/qa/tiledrendering/tiledrendering \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 
 $(eval $(call gb_Executable_add_libs,tiledrendering,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
     -lGL \
     -lGLU \
